﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.DTO
{
    /// <summary>
    /// 用户修改资料
    /// </summary>
    public class UserPatch
    {
        [Required(ErrorMessage ="{0}必填！")]
        public Guid Id { get; set; }

        [StringLength(maximumLength: 20, ErrorMessage = "用户名过长")]
        [Display(Name = "用户名")]
        public string Name { get; set; }


        [StringLength(5)]
        [Display(Name = "性别")]
        public string Sex { get; set; }
        [Display(Name = "年龄")]
        public int Age { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        [StringLength(50)]
        [Display(Name = "地址")]
        public string Address { get; set; }

        /// <summary>
        /// 介绍
        /// </summary>
        //[StringLength(200)]
        //[Display(Name ="介绍")]
        //public string Description { get; set; }
    }
}
